//环境配置，相关常量、变量等

//关闭警告提示
process.env['ELECTRON_DISABLE_SECURITY_WARNINGS'] = 'true'
//浏览器UserAgent
//const USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:97.0) Gecko/20100101 Firefox/97.0"
const USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:106.0) Gecko/20100101 Firefox/106.0"
const USER_AGENT_APPLE = "'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_16) AppleWebKit/605.1.15 (KHTML, like Gecko)'"
//是否为macOS
const isMacOS = (process.platform === 'darwin')
//是否为Windows OS
const isWinOS = (process.platform === 'win32')
//是否使用自定义交通灯控件
const useCustomTrafficLight = !isMacOS
//TODO NODE_ENV取值：dev、proc
//是否为开发环境
const isDevEnv = (process.env['NODE_ENV'] === 'dev')
//应用Icon
const APP_ICON = isMacOS ? '../public/icon.png' : '../public/icon@2x.png'

//导出
module.exports = {
    isMacOS,
    isWinOS,
    useCustomTrafficLight,
    isDevEnv,
    USER_AGENT,
    USER_AGENT_APPLE,
    APP_ICON
}
